<template>
<div id="app" v-bind:style="{
        backgroundImage:'url(' + bg + ')',
        backgroudRepeat:'repeat',
        backgroundSize:'100% 100%'
        //backgroundSize: 'cover'
        }">
    <transition name="fade" mode="out-in">
        <router-view>
        </router-view>
    </transition>
</div>
</template>

<script>


export default {
    computed:{
      bg: function(){
        console.log( this.$route)
         if(this.$route.name == 'login'){
           
            return require('@/assets/home_logo.jpeg');
         } else {
           return null;
         }
      }
    },
    name: 'app',
    components: {

    },
   
}
</script>

<style>
body {
    margin: 0px;
    padding: 0px;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

#app {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100%;
}

.el-submenu [class^=fa] {
    vertical-align: baseline;
    margin-right: 10px;
}

.el-menu-item [class^=fa] {
    vertical-align: baseline;
    margin-right: 10px;
}

.toolbar {
    background: #f2f2f2;
    padding: 10px;
    margin: 10px 0px;

}

.el-form-item {
    margin-bottom: 10px;
}

.fade-enter-active,
.fade-leave-active {
    transition: all .2s ease;
}

.fade-enter,
.fade-leave-active {
    opacity: 0;
}

.el-form-item__error {

    position: relative;

}
.el-button--primary {
    color: #FFF;
    background-color: #63e0ec !important;
    border-color: #63e0ec !important;
}
.el-checkbox__label{
  color:  #63e0ec !important;
}
.el-checkbox__inner {
    background-color: #63e0ec !important;
    border-color: #63e0ec !important;
}
.title{
    color: #63e0ec!important;
}
</style>
